import request from '@/utils/request'

// 查询协会备案列表
export function listFundRecord(query) {
  return request({
    url: '/record/fundRecord/list',
    method: 'get',
    params: query
  })
}

// 查询协会备案详细
export function getFundRecord(id) {
  return request({
    url: '/record/fundRecord/' + id,
    method: 'get'
  })
}

// 查询协会备案详细
export function getInfoByFundId(fundId) {
  return request({
    url: '/record/fundRecord/getInfoByFundId/' + fundId,
    method: 'get'
  })
}

// 保存协会备案
export function saveFundRecord(data) {
  return request({
    url: '/record/fundRecord/save',
    method: 'post',
    data: data
  })
}

// 删除协会备案
export function delFundRecord(id) {
  return request({
    url: '/record/fundRecord/' + id,
    method: 'delete'
  })
}

// 导出协会备案
export function exportFundRecord(query) {
  return request({
    url: '/record/fundRecord/export',
    method: 'get',
    params: query
  })
}
